﻿<%@ Page Language="C#" MasterPageFile="~/MasterPage.master"  AutoEventWireup="true" CodeFile="Summary.aspx.cs" Inherits="Salary_Summary" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <div>
        <asp:Label ID="Label1" runat="server" Text="对不起，该页面属经理专用，请访问其它链接！" Visible="False"></asp:Label><br />
        <table  align="center" style="width: 548px">
          <!--DWLayoutTable-->
            <tr>
              <td width="258" height="37" valign="top" style="width: 111px; height: 16px">
                  开始时间:<asp:TextBox ID="txtStartTime" runat="server" Width="128px">2000-01-01</asp:TextBox><asp:RequiredFieldValidator
                      ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtStartTime"
                      ErrorMessage="开始时间不能为空"></asp:RequiredFieldValidator></td>
                <td colspan="2" valign="top" style="width: 8px; height: 16px">
                    </td>
            </tr>
            <tr>
                <td height="37" style="width: 111px; height: 16px" valign="top" width="258">
                    结束时间:<asp:TextBox ID="txtEndTime" runat="server" Width="128px">2010-01-01</asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtEndTime"
                        ErrorMessage="结束时间不能为空"></asp:RequiredFieldValidator></td>
                <td colspan="2" style="width: 8px; height: 16px" valign="top">
                    </td>
            </tr>
            <tr>
                <td height="24" colspan="3">
                    <asp:CheckBox ID="chkSort" runat="server" OnCheckedChanged="chkSort_CheckedChanged" />按工资排序</td>
            </tr>
            <tr>
                <td colspan="3" style="height: 43px">
                    <asp:RadioButtonList ID="RadioButtonList1" runat="server">
                        <asp:ListItem Value="0">升序</asp:ListItem>
                        <asp:ListItem Value="1">降序</asp:ListItem>
                    </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td colspan="3" height="43">
                    <asp:Panel ID="Panel1" runat="server" Height="50px" Width="225px">
                        要查看的部门：<asp:DropDownList ID="cmbDeptList" runat="server" OnSelectedIndexChanged="cmbDeptList_SelectedIndexChanged" Width="117px">
                        </asp:DropDownList></asp:Panel>
                </td>
            </tr>
            <tr>
                <td height="28" colspan="3" style="height: 26px">
                    <asp:Button ID="btnSearch" runat="server" Text="显示结果" OnClick="btnSearch_Click" /></td>
            </tr>
            <tr>
                <td height="21" colspan="3">
                    <asp:Label ID="Label2" runat="server" ForeColor="Red" Text="没有找到任何记录！" Visible="False"
                        Width="406px"></asp:Label></td>
            </tr>
            <tr>
                <td height="55" colspan="3" style="height: 53px">
                    <asp:GridView ID="grdResult" runat="server" AutoGenerateColumns="False" BackColor="White"
                        BorderColor="#DEDFDE" BorderStyle="None" BorderWidth="1px" CellPadding="4" ForeColor="Black"
                        GridLines="Vertical" Visible="False" Width="448px">
                        <FooterStyle BackColor="#CCCC99" />
                        <Columns>
                            <asp:BoundField HeaderText="员工姓名" DataField="EmployeeName" />
                            <asp:BoundField HeaderText="基本工资" DataField="BasicSalary" />
                            <asp:BoundField HeaderText="加班工资" DataField="OvertimeSalary" />
                            <asp:BoundField HeaderText="考勤扣除" DataField="AbsenceSalary" />
                            <asp:BoundField HeaderText="其它增减" DataField="OtherSalary" />
                            <asp:BoundField HeaderText="最终所得" DataField="ActualSalary" />
                        </Columns>
                        <RowStyle BackColor="#F7F7DE" />
                        <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                        <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                        <AlternatingRowStyle BackColor="White" />
                    </asp:GridView>                </td>
            </tr>
            <tr>
              <td height="5"></td>
              <td width="151"></td>
              <td></td>
            </tr>
        </table>
    
    </div>
</asp:Content>
